package com.example.mbl.dao;

import com.example.mbl.entity.Book;
import com.example.mbl.result.business.BookPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {

    List<Book> searchItemsByKeyWord(String keyword);

    int deleteByPrimaryKey(String bookid);

    int insert(Book record);

    int insertSelective(Book record);

    Book selectByPrimaryKey(String bookid);

    int updateByPrimaryKeySelective(Book record);

    int updateByPrimaryKey(Book record);

    List<BookPageResult> getBookList(@Param("bookname") String bookname,
                                     @Param("publishdate") String publishdate,
                                     @Param("start") int start,
                                     @Param("pagesize") int pagesize);

    int setBookVisible(String bookid);
}